import axios from '@/libs/api.request'

/**
 * 保存
 * @return {[type]}        [description]
 */
export const fetchSaveData = data => {
  return axios.request({
    url: '/api/pipeline/addPipeline',
    method: 'post',
    data
  })
}

/**
 * 获取
 * @return {[type]}        [description]
 */
export const fetchGetPipNetworkData = params => {
  return axios.request({
    url: '/api/pipeline/getPipeline',
    method: 'get',
    params
  })
}
